{{- if or .Values.istio.federation.enabled .Values.istio.multicluster.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
  name: d8-remote-clusters-public-metadata
  namespace: d8-{{ .Chart.Name }}
  {{- include "helm_lib_module_labels" (list .) | nindent 2 }}
data:
  remote-public-metadata.json: {{ .Values.istio.internal.remotePublicMetadata | toJson | b64enc | quote }}
{{- end }}
